<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
<div id="app">
    <input type="checkbox" value="java" v-model="languages">java<br>
    <input type="checkbox" value="php" v-model="languages">php<br>
    <input type="checkbox" value="js" v-model="languages">js<br>
    <h2 v-on:click="sc">你选择了{{languages.join(" join ")}}</h2>
</div>
<script type="text/javascript">
    var app = new Vue({
        el:"#app",
        data:{
            languages:[]
        },
        methods:{
            sc(){
                console.log(this.languages)
            }
        }
    })
</script>
</body>
</html>